5.5 The Batch Directory Synchronization Tool

MyID can be configured to update user information in MyID from the LDAP directory automatically when a user record is selected. This tool does the same thing for all accounts in MyID.

The Batch Directory Synchronization Tool is used to synchronize users imported into MyID with the latest information held in the directory. If MyID is integrated with multiple LDAP directories, all the directories will be included in the synchronization process.

You run the tool on the MyID application server, under the MyID COM user. You can run the tool from the Start menu, from the command line or as a scheduled task. For an installation containing a significant number of records, Intercede recommends that you run the synchronization tool as a scheduled task.

5.5.1 How does the Synchronization Tool work?

The Synchronization Tool processes all the records in the MyID database that are mapped to entries in an LDAP directory.

Note: When the tool is run for the first time since installation or upgrade, it runs without the whenChanged behavior, whatever options you select; this is to provide an initial successful run to set the start time of the last successful run in the database. If you select the whenChanged option, the tool displays a warning:

All changes are written directly to the MyID database and are fully audited.

5.5.2 Revoking certificates

The behavior of MyID in revoking certificates for users who have been removed from the directory depends on the combination of MyID configuration options:

Disable on removal from directory

Revoke certificates if user is removed or disabled

Behavior

NO NO

User in MyID is unaffected.

NO YES

User in MyID is unaffected.

YES NO

User is disabled in MyID. Associated certificates are unaffected.

YES YES

User is disabled in MyID and associated certificates are revoked.

5.5.3 Running the tool from the Start menu

By default, the tool runs in interactive mode from the Start menu. You can change this by editing the properties of the shortcut to incorporate the flags specified in section 5.5.4, Running the tool from the command line.

Note: Run the utility under the MyID COM user account.

  1. From the Start menu, run the Batch Directory Synchronization Tool.
  2. To update only those records that have been changed since the last time the Batch Directory Synchronization Tool was run, select the whenChanged option.
  3. Click Synchronize.

    Progress is displayed both in the text area and in a progress bar towards the bottom of the dialog.

A summary of the records processed and the time taken are displayed.

For example:

Processed 122083, Updated 41752, 7027 removed from LDAP, 3161 disabled in LDAP

This means that the tool carried out the following:

Note: If the Disable on removal from directory option on the LDAP page of the Operation Settings workflow is set, the 7207 users removed from the LDAP and the 3161 users disabled in the LDAP will also be disabled in MyID.

5.5.4 Running the tool from the command line

Note: Run the utility under the MyID COM user account.

You can run the Batch Directory Synchronization Tool from the command line using the following command lines:

Note: The case of the command-line options is important. Use all lower-case; for example, use -whenchanged, not -whenChanged.

To record the details of the process to a specified file, add the -trace flag to the command. You can use this flag either alone or with the other flags. For example, you could run:

BatchLDAPSync.exe -silent -whenchanged -trace LDAPSync.log

If you do not specify a filename, batchldap.log in the current directory is used.

Note: You are recommended to use the -trace option when running in -silent mode.

5.5.5 Running as a scheduled task

You can run the Batch Directory Synchronization Tool as scheduled task using standard Windows functionality.

The program to be run is called BatchLDAPSync.exe and the flags available are described in section 5.5.3, Running the tool from the Start menu.

5.5.6 Troubleshooting